# person_info = {
#     "name": "Alex",
#     "age": 30,
#     "country": "USA",
#     "language": ["English", "Spanish"],
#     "is_student": False
# }
#
# person_info.update({"age":31})
# person_info.update({"height":175})
# del person_info["is_student"]
# for i in person_info.items():
#     print(i)
# a=0
# for i in person_info.keys():
#     if i=="email":
#         continue
#         a+=1
# if a ==0:
#     person_info.update({"email": "alex@example.com"})
# person_info.update({"language":"english"})
# print(len(person_info["language"]))
# person_info["language"]="french,english"
# for i in range(1,4):
#     key = f'hobby{i}'
#     value=f'hobby{i}'
#     person_info.update({key:value})
#
#
#
# print(person_info["name"])
# print((person_info))
#
# employees = {
#     101: {
#         "name": "Alice",
#         "age": 30,
#         "gender": "Female",
#         "position": "Data Scientist",
#         "team": "Research",
#         "salary_history": [70000, 80000, 90000]
#     },
#     # 更多员工数据...
# }
#
#
#
#
# employees.update({102:{
#          "name": "Alice",
#         "age": 30,
#         "gender": "Female",
#         "position": "Data Scientist",
#         "team": "Research",
#         "salary_history": [70000, 80000, 90000]
# }
# }
# )
# list=[]
# for id,de in employees.items():
#     if de["age"]>25:
#         zd.append({
#             "id":id,
#             "name":de["name"]
#         })
# print(zd)
# for de in employees.values():
#     de.update({"bonus":900})
#
# del employees[102]
# zd={}
#
#
# for i,d in employees.items():
#      zd.update({i:{
#         "name":d["name"],
#         "position":d["position"]
#     }})
#
# print(zd)
# print(employees)